﻿using System;

namespace Arroguella.Utilities
{
    public static class Dice
    {
        #region Methods

        /// <summary>
        /// Rolls a singe die with the number of sides specified.
        /// </summary>
        /// <returns>Returns between 1 (inclusive) and the number of sides (inlusive)</returns>
        public static int D(int sides)
        {
            Random random = new Random();
            return random.Next(1, sides + 1);
        }

        /// <summary>
        /// Rolls a random damage value between min and max values (inclusive)
        /// </summary>
        public static int Damage(int min, int max)
        {
            Random random = new Random();
            return random.Next(min, max + 1);
        }

        #endregion

        #region Properties
        #endregion
    }
}
